package com.akiokevin.plantyourlife.database;

import com.akiokevin.plantyourlife.schedule.ScheduleEntry;

import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;

public class ScheduleDBAdaptor {

	private Context context;
	private SQLiteDatabase db;
	private ScheduleDBHelper dbh;
	
	public ScheduleDBAdaptor(Context context) {
		this.context = context;
		
	}
	
	public ScheduleDBAdaptor open() throws SQLException {
		dbh = new ScheduleDBHelper(context);
		db = dbh.getWritableDatabase();
		return this;
	}
	
	public void close() {
		dbh.close();
	}
	

	public void insertIntoTemplate(ScheduleEntry entry) {
		
	}
	
	public void removeFromTemplate(ScheduleEntry entry) {
		
	}
	
	public void insertIntoResult(ScheduleEntry entry, boolean result) {
		
	}	
}
